import request from '@/utils/request'
// 获取快递员分页数据
// params:(page:xxx, pageSize:xxx)
export const getExpress = (params) => {
  return request.get('/business-hall/courier/page', {
    params
  })
}
// 获取树状机构接口
export function getTree() {
  return request({
    url: '/business-hall/tree',
    method: 'get'
  })
}
// 获取司机分页数据
export function getDriver(params) {
  return request({
    url: '/driver/page',
    method: 'get',
    params
  })
}
// 排班分页数据
export function getCalss(params) {
  return request({
    url: '/work-schedulings',
    method: 'get',
    params
  })
}
// 工作模式列表数据
export function getWork() {
  return request({
    url: '/work-patterns/all',
    method: 'get'
  })
}
// 工作模式分页查询
export function geiWorkpag(params) {
  return request({
    url: '/work-patterns/page',
    params
  })
}
// 删除工作模式
export function delWork(id) {
  return request({
    url: '/work-patterns/' + id,
    method: 'delete'
  })
}
export function getok(id) {
  return request({
    url: '/work-patterns/' + id,
    method: 'get'
  })
}
